#include "employee.h"
#include "collection.h"
#include "iterator.h"

#include <iostream>

using namespace std;

int main()
{
	List<Employee> list(3);
	ListIterator<Employee> it(&list);

	list.get(0)->set("Tom", 24);
	list.get(1)->set("John", 22);
	list.get(2)->set("Jim", 26);

	for (it.first(); !it.isDone(); it.next())
	{
		it.curItem()->show();
	}

	return 0;
}
